﻿using BW.IBLL;
using BW.Models;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace BW.API.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class MemberLevelBLLController : ControllerBase, IMemberLevelBLL
    {
        public MemberLevelBLLController(IMemberLevelBLL memberLevelBLL)
        {
            MemberLevelBLL = memberLevelBLL;
        }

        public IMemberLevelBLL MemberLevelBLL { get; }

        [HttpGet]
        public List<MemberLevel> GetMemberLevels()
        {
            return MemberLevelBLL.GetMemberLevels();
        }
    }
}
